package com.yuyang.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuyang.common.utils.PageUtils;
import com.yuyang.gulimall.product.entity.BrandEntity;
import com.yuyang.gulimall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author yuyang
 * @email yuyang@gmail.com
 * @date 2022-11-21 21:46:30
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);
    //更新品牌关联的数据
    void updateBrand(Long brandId, String brandName);
    //更新分类关联的数据
    void updateCategory(Long catId, String categoryName);

    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);
    //获取分类关联的品牌
    List<BrandEntity> getBrandsByCatId(Long catId);
}

